﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VISS.API.Commons {
    public interface IHouse {

        /// <summary>
        /// Insert new HouseEnt
        /// </summary>
        /// <param name="item">HouseEnt</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Insert(HouseEnt item);
        /// <summary>
        /// Update HouseEnt
        /// </summary>
        /// <param name="item">HouseEnt</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Update(HouseEnt item);
        /// <summary>
        /// Delete a HouseEnt
        /// </summary>
        /// <param name="iD">ID of HouseEnt need to be deleted</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Delete(short iD);

        /// <summary>
        /// Get all HouseEnt
        /// </summary>
        /// <returns>return a list of HouseEnt (empty list if no HouseEnt exists)</returns>
        List<HouseEnt> GetAll();
    }
}
